<?php
$baseUrl = Yii::app()->request->baseUrl;
$cs = Yii::app()->getClientScript();
?>
<div class="page-content">
<div class="news-item">
    <div class="title">
        <span><?php echo CHtml::link($data->title, Yii::app()->createUrl('site/supportDetail', array('id'=>$data->id))) ?></span> 
        <span><?php echo date('d/m/Y', $data->createTime) ?></span>
   </div>    
    <br>
    <div class="intro">
        <?php if($data->avatar): ?>
        <img class="thumb" src="<?php echo (Yii::app()->baseUrl . '/' . $data->avatar->url) ?>" />        
        <?php endif ?>        
       
        <div class="it-text">
           <?php echo StringCommon::truncateString($data->content, 200,'...') ?>
        </div>
    </div>
</div>      
</div>